//
//  ExGradientViewController.m
//  OC-Example
//
//  Created by apang on 2018/7/31.
//  Copyright © 2018年 apang.men All rights reserved.
//

#import "ExGradientViewController.h"
#import "ExGradientView.h"
@interface ExGradientViewController ()

@end

@implementation ExGradientViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view setBackgroundColor:[UIColor whiteColor]];

    self.title = @"进度条";
    ExLineGradientView * test = [[ExLineGradientView alloc] initWithFrame:CGRectMake(0, 20, CGRectGetWidth(self.view.frame), 1.0)];
    [self.view addSubview:test];
    [test startAnimating];

    ExDashLineGradientView * dashLine = [[ExDashLineGradientView alloc] initWithFrame:CGRectMake(0, 30, CGRectGetWidth(self.view.frame), 1.0)];
    [self.view addSubview:dashLine];
    [dashLine startAnimating];

    ExDashCircleGradientView * dashCircle = [[ExDashCircleGradientView alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.view.frame)/2.0, 40, 150, 150)];
    [self.view addSubview:dashCircle];
    [dashCircle startAnimating];

    CircleGredient * circle = [[CircleGredient alloc] initWithFrame:CGRectMake(0, 40, 150, 150)];
    [self.view addSubview:circle];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
